package com.lfd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.lfd.mapper.TjProductMapper;
import com.lfd.service.TjProductService;
import com.lfd.vo.ProductVo;

@Service
public class TjProductServiceImpl implements TjProductService {
	@Autowired
	private TjProductMapper tjProductMapper;

	@Override
	public List<ProductVo> tuijian(ProductVo productVo, Integer page, Integer limit) {
		// TODO Auto-generated method stub
		List<ProductVo> tuijian = tjProductMapper.tuijian(productVo, (page - 1) * limit, limit);
		return tuijian;
	}

	@Override
	public void update(List<Long> ids) {
		tjProductMapper.update(ids);

	}

	@Override
	public void sztuijian(List<Long> ids) {
		tjProductMapper.sztuijian(ids);
		
	}



}
